import Layout from '@/views/layout/Layout'
const pluginsRouter = {
  path: '/plugins',
  component: Layout,
  redirect: '/plugins/index',
  alwaysShow: false, // will always show the root menu
  meta: {
    title: '插件',
    icon: 'component',
    roles: ['teacher'] // you can set roles in root nav
  },
  children: [{
    path: 'management',
    component: () => import('@/views/plugins/management'),
    name: 'AssignmentManagement',
    meta: {
      title: '管理插件',
      roles: ['teacher'] // or you can only set roles in sub nav
    }
  },
  {
    path: 'setup',
    component: () => import('@/views/plugins/setup'),
    name: 'SetUp',
    meta: {
      title: '配置插件',
      roles: ['teacher'] // or you can only set roles in sub nav
    }
  }
  ]
}
export default pluginsRouter
